<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>折线图</title>
    <script src="../../echarts.min.js"></script>
</head>
<body>
    <div id="main" style="height: 400px;width: 600px;"></div>
</body>
<script>
    let mychart = echarts.init(document.getElementById("main"))
    let option = {
        xAxis:{
            name:"日期",
            type:"category",
            data:["Mon","Tue","Wed","Thu","Fri","Sat","sun"]
        },
        yAxis:{type:"value"},
        series:[
            {
                data:[450,220,301,734,1090,830,500],
                type:"line"
            }
        ],
        tooltip:{}
    }
    mychart.setOption(option)
</script>
</html>